package cn.udrm.water.base.v1.frontpages.waterdistribute;

import org.springframework.stereotype.Component;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestParam;

import cn.udrm.water.base.v1.commons.annotations.Router;

/**
 * 闸门前端路由
 * @author liukang
 * @date 2019年3月18日
 */
@Component
@Router(value="router/waterdistribute/waterGate")
public class WaterGateRouter {

	@Router(value="list")
	public String list() {
		return "waterdistribute/waterGate/list";
	}
	
	@Router(value="add")
	public String add(@RequestParam(value="id", required=false) String id, ModelMap modelMap) {
		modelMap.addAttribute("id", id);
		return "waterdistribute/waterGate/add";
	}
	
	@Router(value="detail")
	public String detail() {
		return "waterdistribute/waterGate/detail";
	}
	
	@Router(value="selectCanalSystem")
	public String selectCanalSystem() {
		return "waterdistribute/waterGate/selectCanalSystem";
	}
}
